<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<!-- <script src='/Public/jquery.min.js'></script> -->
  <script src="https://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
  
	<script src='/Public/foundation/js/foundation.min.js'></script>
	<link rel="stylesheet" href="/Public/foundation/css/foundation.min.css">
  <script src='/Public/jquery.cityselect.js'></script>
  <script src='/Public/jquery.datetimepicker.full.js'></script>
  <link rel="stylesheet" href="/Public/jquery.datetimepicker.css">
</head>
<body>
<nav class="top-bar" data-topbar>
  <ul class="title-area">
    <li class="name">
      <h1><a href="#">后台管理</a></h1>
    </li>
  </ul>

  <section class="top-bar-section">
    <ul class="right">
      <li><a href=""><?php echo (session('name')); ?></a></li>
      <li><a href="<?php echo U('Login/doLogout');?>">退出</a></li>
    </ul>
  </section>
</nav>

<div class="small-2 columns">
<ul class="side-nav">
 <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U($vo['url']);?>" target='<?php echo ($vo["target"]?"_blank":null); ?>'><?php echo ($vo["mname"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
</div>
<div class="small-10 columns">

<form action="?" id="up" method="get">
	<select class="clss"  name="up" id="menu">
<option <?php echo ($vo['up']==0?'selected':null); ?>value="0">顶级</option>
                        <?php if(is_array($opts)): $i = 0; $__LIST__ = $opts;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$opt): $mod = ($i % 2 );++$i;?><option <?php echo ($vo['up']==$opt['menu_id']?'selected':null); ?> value="<?php echo ($opt['menu_id']); ?>"><?php echo ($opt["mname"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
	</select>
	</form>
	<select name="" id="two" size="8" style="width:80px;height:200px">




	</select>
	<script>
		$('#one .abc').bind('click',po);
		$('#two .abc').bind('click',oi);
		
		$('#up').change(function(){
			$('#up').submit();
		})

		function po(){
			$(this).on('click',oi);
			$(this).prependTo($('#two'));
		}
		function oi(){
			$(this).on('click',po);
			$(this).prependTo($('#one'));
		}



	</script>

</div>

</body>
</html>